package com.sl.core.domain.dto;

import com.sl.core.utils.JsonMap;
import lombok.*;
import lombok.experimental.Accessors;

import java.util.UUID;

@Getter
@Setter
@AllArgsConstructor
@NoArgsConstructor
@Builder
@Accessors(chain = true)
public class TransformationOrderHop extends JsonMap {

    private String id;
    private String from;

    private String to;

    private String enabled;

    public static TransformationOrderHop basic(String from, String to, String enabled) {
        TransformationOrderHop transformationStep = new TransformationOrderHop(UUID.randomUUID().toString().replace("-", ""), from, to, enabled);
        transformationStep.build();
        return transformationStep;
    }
}
